import { defineConfig } from 'vitepress'

// https://vitepress.vuejs.org/config/app-configs
export default defineConfig({
  title: 'Claude Code 使用指南',
  description: '全面的 Claude Code 使用指南，包含安装配置、MCP 工具、Subagents 和最佳实践',
  
  ignoreDeadLinks: true,
  
  appearance: false,
  
    
  themeConfig: {
    nav: [
      { text: '首页', link: '/' },
      { text: '安装指南', link: '/installation/' },
      { text: 'MCP 工具', link: '/mcp/' },
      { text: 'Subagents', link: '/subagents/' },
      { text: '使用技巧', link: '/tips/' }
    ],

    
    
    sidebar: {
      '/': [
        {
          text: '开始使用',
          items: [
            { text: '介绍', link: '/' },
            { text: '快速开始', link: '/getting-started' }
          ]
        }
      ],
      '/installation/': [
        {
          text: '安装配置',
          items: [
            { text: '基础安装', link: '/installation/' },
            { text: '代理配置', link: '/installation/proxy' },
            { text: '快速启动', link: '/installation/quick-start' }
          ]
        }
      ],
      '/mcp/': [
        {
          text: 'MCP 工具',
          items: [
            { text: 'MCP 简介', link: '/mcp/' },
            { text: 'Playwright', link: '/mcp/playwright' },
            { text: 'Context7', link: '/mcp/context7' },
            { text: '其他 MCP 工具', link: '/mcp/others' }
          ]
        },
        {
          text: 'Spec-Workflow-MCP',
          items: [
            { text: '使用指南', link: '/mcp/spec-workflow-mcp' },
            { text: '安装指南', link: '/mcp/installation/spec-workflow-mcp' },
            { text: '使用指南集合', link: '/mcp/guides/' },
            { text: '指导文档创建', link: '/mcp/guides/steering-docs' },
            { text: '规格文档创建', link: '/mcp/guides/spec-creation' },
            { text: '审批流程管理', link: '/mcp/guides/approval-workflow' }
          ]
        }
      ],
      '/subagents/': [
        {
          text: 'Subagents',
          items: [
            { text: 'Subagents 简介', link: '/subagents/' },
            { text: '通用代理', link: '/subagents/general-purpose' },
            { text: '状态栏设置', link: '/subagents/statusline-setup' },
            { text: '输出样式设置', link: '/subagents/output-style-setup' }
          ]
        }
      ],
      '/tips/': [
        {
          text: '使用技巧',
          items: [
            { text: '高效沟通', link: '/tips/' },
            { text: '上下文管理', link: '/tips/context' },
            { text: '全局记忆', link: '/tips/memory' },
            { text: '最佳实践', link: '/tips/best-practices' }
          ]
        }
      ]
    },

    // socialLinks: [
    //   { icon: 'github', link: 'https://github.com/anthropics/claude-code' }
    // ],

    footer: {
      message: '基于 MIT 许可证发布',
      copyright: 'Copyright © 2024 Claude Code 使用指南'
    }
  }
})